<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" href="__STATIC__/layui/css/layui.css">
    <link rel="stylesheet" href="__STATIC__/layui/css/view.css">
</head>
<body>
<div class="layui-body" style="padding: 15px">

    <form method="post" action="ksdoadd" class="layui-form">

        <div class="layui-form-item">
            <label class="layui-form-label">课时名：</label>
            <input class="layui-input layui-input-inline" type="text" name="ksname">
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">所属课程：</label>
            <div class="layui-input-inline">
                <select name="ofkc">
                    {foreach name="kcb" key="k" item="v"}


                    <option value="{$v.kcid}">{$v.name}</option>
                    {/foreach}
                </select ></div>
        </div>
        <div class="layui-form-item ">
            <label class="layui-form-label">课时视频：</label>
            <input class="layui-input layui-input-inline" type="text" name="href">
        </div>



        <div style="margin: 50px">
            <input onclick="window.history.back()" class="layui-btn layui-btn-primary" type="button" value="返回">
            <button type="submit" class="layui-btn">提交</button>
        </div>

    </form>
</div>
<script src="__STATIC__/layui/layui.js"></script>
<script>
    //Demo
    layui.use('form', function(){
        var form = layui.form;

        //监听提交
    });
</script>
</body>
</html>